<#macro addTestPlan>
<div id="buildTestPlan" style="display: none">
    <div style="margin-left: 10%">
        <form class="form-horizontal" style="display: inline">
            <div class="step-content row-fluid position-relative" id="step-container">
                <div class="step-pane active" id="step1">
                    <div class="form-group">
                        <h3 class="lighter block green">配置计划信息</h3>
                    </div>
                    <div class="form-group" style="margin-top: 2%">
                        <label class="col-md-2 control-label" for="testPlanName">计划名称</label>
                        <div class="col-md-5">
                            <input class="form-control" name="testPlanName" type="text" id="testPlanName"
                                   placeholder="计划名称"
                                   value=""/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label" for="runMode">计划运行模式</label>
                        <div class="col-md-5">
                            <select class="selectpicker form-control" id="runMode" name="runMode">
                                <option value="1" >单接口数据驱动</option>
                                <option value="2" >多接口场景运行</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">定时任务</label>
                        <div class="col-md-5">
                            <div>
                                <input name="weekTime" type="checkbox" value=1 />星期一
                                <input name="weekTime" type="checkbox" value=2 />星期二
                                <input name="weekTime" type="checkbox" value=3 />星期三
                                <input name="weekTime" type="checkbox" value=4 />星期四
                                <input name="weekTime" type="checkbox" value=5 />星期五
                                <input name="weekTime" type="checkbox" value=6 />星期六
                                <input name="weekTime" type="checkbox" value=7 />星期日
                            </div>
                            <div>
                                <select id="hh" style="width: 70px">
                                    <option value="0" selected="selected">00</option>
                                    <option value="1">01</option>
                                    <option value="2">02</option>
                                    <option value="3">03</option>
                                    <option value="4">04</option>
                                    <option value="5">05</option>
                                    <option value="6">06</option>
                                    <option value="7">07</option>
                                    <option value="8">08</option>
                                    <option value="9">09</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>

                                </select>时
                                <select id="mm" style="width: 70px">
                                    <option value=0 selected="selected">00</option>
                                    <option value=1>01</option>
                                    <option value=2>02</option>
                                    <option value=3>03</option>
                                    <option value=4>04</option>
                                    <option value=5>05</option>
                                    <option value=6>06</option>
                                    <option value=7>07</option>
                                    <option value=8>08</option>
                                    <option value=9>09</option>
                                    <option value=10>10</option>
                                    <option value=11>11</option>
                                    <option value=12>12</option>
                                    <option value=13>13</option>
                                    <option value=14>14</option>
                                    <option value=15>15</option>
                                    <option value=16>16</option>
                                    <option value=17>17</option>
                                    <option value=18>18</option>
                                    <option value=19>19</option>
                                    <option value=20>20</option>
                                    <option value=21>21</option>
                                    <option value=22>22</option>
                                    <option value=23>23</option>
                                    <option value=24>24</option>
                                    <option value=25>25</option>
                                    <option value=26>26</option>
                                    <option value=27>27</option>
                                    <option value=28>28</option>
                                    <option value=29>29</option>
                                    <option value=30>30</option>
                                    <option value=31>31</option>
                                    <option value=32>32</option>
                                    <option value=33>33</option>
                                    <option value=34>34</option>
                                    <option value=35>35</option>
                                    <option value=36>36</option>
                                    <option value=37>37</option>
                                    <option value=38>38</option>
                                    <option value=39>39</option>
                                    <option value=40>40</option>
                                    <option value=41>41</option>
                                    <option value=42>42</option>
                                    <option value=43>43</option>
                                    <option value=44>44</option>
                                    <option value=45>45</option>
                                    <option value=46>46</option>
                                    <option value=47>47</option>
                                    <option value=48>48</option>
                                    <option value=49>49</option>
                                    <option value=50>50</option>
                                    <option value=51>51</option>
                                    <option value=52>52</option>
                                    <option value=53>53</option>
                                    <option value=54>54</option>
                                    <option value=55>55</option>
                                    <option value=56>56</option>
                                    <option value=57>57</option>
                                    <option value=58>58</option>
                                    <option value=59>59</option>
                                </select>分
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label" for="sendTo">收件人</label>
                        <div class="col-md-5">
                    <textarea maxlength='100' class="form-control"
                              style="min-height: 200px;max-height: 30%;max-width: 458px" placeholder="邮箱地址请以,隔开" id='sendTo'>
                    </textarea>
                        </div>
                    </div>

                </div>
                <div class="step-pane" id="step2">
                    <div class="form-group">
                        <h3 class="lighter block green">配置用例信息</h3>
                    </div>
                    <div class='row'>
                        <div class="col-md-4">
                            <label class="col-md-6 control-label" for="interface">选择用例</label>
                            <div class='span5'
                                 style='border:1px solid #000; overflow:auto ; width: 100%;height: 500px;'>
                                <div class='text-center'>
                                    <button class='btn buttonS btn-success btnFont'
                                            style='padding: 3px 6px;margin-top: 5px;margin-left: 8px;margin-bottom: 10px;'
                                            onclick=planTree.expandAll('leftTree')>展开用例树
                                    </button>
                                    <button class='btn buttonS btn-success btnFont'
                                            style='padding: 3px 6px;margin-top: 5px;margin-left: 8px;margin-bottom: 10px;'
                                            onclick=planTree.collaspeAll('leftTree')>收起用例树
                                    </button>

                                </div>
                                <input type='text' style='width: 95%; height: 25px; margin-left: 8px;' id='processKey'
                                       placeholder='输入ID、用例标题、或模块名称筛选...'>
                                <ul id='leftTree' class='ztree'></ul>
                            </div>
                        </div>
                        <div class="col-md-1">
                            <div class='span2' style='text-align:center;width: 38px;margin-top: 200px; '>
                                <div style='text-align:center '>
                                    <h6 class='text-left col-md-3'>已选择
                                        <span class="col-md-3" id='rightCaseNumber'>(0)</span>
                                    </h6>
                                    <input type='button' title='选择全部' onclick='planTree.moveAllCaseToRight();'
                                           class='btn apmhide' value='>>'>
                                    <br/>
                                    <input type='button' title='选择' style='width: 42px; margin-top: 5px;'
                                           onclick='planTree.moveCaseToRight();' class='btn' value='>'>
                                    <br/>
                                    <input type='button' title='取消' style='width: 42px; margin-top: 5px;'
                                    <#--onclick='planTree.cancelCase();' -->
                                           class='btn' value='<'>
                                    <br/>
                                    <input type='button' title='取消全部' onclick='planTree.cancelAllCase();'
                                           style='margin-top: 5px;' class='btn apmhide' value='<<'>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <label class="col-md-6 control-label" for="interface">已选择用例</label>
                            <div class='span5'
                                 style='border:1px solid #000 ; overflow-y: auto;overflow-x: hidden ;  width:100%;height: 500px;'>
                                <div class='text-center'>
                                    <button class='btn buttonS btn-success btnFont'
                                            style='width: auto; padding: 3px 6px; margin-top: 5px; margin-left: 3px;
margin-bottom: 10px;'
                                            onclick=planTree.expandAll('rightTree')>展开用例树
                                    </button>
                                    <button class='btn buttonS btn-success btnFont'
                                            style='width: auto; padding: 3px 6px; margin-top: 5px; margin-left: 3px;
margin-bottom: 10px;' onclick=planTree.collaspeAll('rightTree')>收起用例树
                                    </button>
                                </div>
                                <input type='text' style='width: 95%; height: 25px; margin-left: 8px;'
                                       id='processRightKey' placeholder='搜索用例'>
                                <ul style='display: none;' id='rightTree' class='ztree'></ul>
                                <div id='caseRightDivId' style='display: none;'></div>
                            <#--<span class='umtp_Tips' id='superManCases_Tips'>执行用例不可以为空</span>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row-fluid wizard-actions" style="text-align:center">
        <div id="btnDiv" style="float: center">
            <a class="btn btn-success btn-next" onclick="testPlan.cancelBuildTestPlan()">
                <i class="icon-remove-circle icon-on-left"></i>
                取消
            </a>
            <a class="btn btn-success btn-next" id="btnPrev" onclick="testPlan.btnPrev()">
                <i class="icon-arrow-left icon-on-left"></i>
                上一步
            </a>

            <a class="btn btn-success btn-next" id="btnNext" onclick="testPlan.btnNext()">
                下一步
                <i class="icon-arrow-right icon-on-right"></i>
            </a>
        </div>
    </div>

</div>
</#macro>